package com.housediyadmin.events.brandEvents
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/15
	 */	
	public class GetBrandEvent extends Event
	{
		public static const GET_ALL_BRANDS:String = "getAllBrands";
		
		public static const GET_BRANDS_MODEL:String = "getBrandsModel";
		public static const UPDATE_BRANDS_MODEL:String = "updateBrandModel";
		
		public var brandArray:ArrayCollection;
		
		
		/**
		 * 这里面有两个type选项，当需要得到所有Brand时选择GET_BRANDS_MODEL，不需传入参数；
		 * 另外一个UPDATE_BRANDS_MODEL是用来更新Brand数据源的
		 * @param type
		 * @param brandsModel
		 * 
		 */		
		public function GetBrandEvent(type:String, brandArray:ArrayCollection = null)
		{
			super(type);
			this.brandArray = brandArray;
		}
		
		override public function clone():Event
		{
			return new GetBrandEvent(type, brandArray);
		}
	}
}